package cn.dev33.satoken.dao.alone;

import cn.dev33.satoken.dao.SaTokenDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.EnvironmentAware;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * 为 SaTokenDao 单独设置Redis连接信息
 * @author kong
 */
@Configuration
public class SaAloneRedisInject implements EnvironmentAware{

	/**
	 * 配置信息的前缀
	 */
	public static final String ALONE_PREFIX = "sa-token.alone-redis";

	/**
	 * Sa-Token 持久层接口
	 */
	@Autowired(required = false)
	public SaTokenDao saTokenDao;

	/**
	 * 开始注入
	 */
	@Override
	public void setEnvironment(Environment environment) {

	}

}
